<template>
  <div>
    <div class="div1">
      <span><img src="../../pages/MSite/images/sousuo.png" width="15px" height="15px"></span>
      <slot>
        <input type="text" placeholder="请输入搜索的内容">
      </slot>
      <button>搜索</button>
    </div>
  </div>
</template>

<script>
export default {
  name: "sousuo"
}
</script>

<style scoped>
  .div1{
    width: 100%;
    background-color: #ffffff;
    position: fixed;
    z-index: 100;
    buttom: 10px;
    left: 0px;
    right: 0px;
    top: 35px;
    box-shadow: 0 -3px 1px rgba(100, 100, 100, 0.1);
  }
  .div1 > input{
    box-sizing: border-box;
    width: 100%;
    border-radius: 15px;
    border: 3px solid #ffe31a;
    padding: 5px 25px;
    outline: none;
    margin-top: 8px;
    background-color: #f5f3f3;
  }
  .div1 > span{
    position: absolute;
    display: inline-block;
    top: 18px;
    left: 6px;
    width: 20px;
    height: 20px;
  }
  .div1 > button{
    position: absolute;
    display: inline-block;
    border: 2px solid #ffe31a;
    border-radius: 20px;
    top: 7px;
    right: 0;
    width: 66px;
    height: 33px;
    background-color: #ffe31a;
  }
</style>
